package com.dd.cloud.user.entity.phar;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author czg
 * @since 2020-03-21
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "机构的选择默认药房表")
public class PharmacyChoose implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据表说明:后台管理用户表
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 机构id
     */
    @Column(comment = "机构id")
    private Integer mechanId;

    /**
     * 医生id
     */
    @Column(comment = "医生id")
    private Integer doctorId;

    /**
     * 药房id
     */
    @Column(comment = "药房id")
    private Integer pharId;

    /**
     * 是否支付
     */
    @Column(type = MySqlTypeConstant.TINYINT, defaultValue = "0", comment = "是否支付")
    private Integer isPay;

    /**
     * 默认加共类型
     */
    @Column(comment = "加工类型")
    private Integer type;
}
